import { lazy } from "react";
import { RouterList } from "@/utils";

const routes:RouterList=[
    {
        path:'/',
        to:'/home'
    },
    {
        path:'/home',
        title:'精品推荐',
        element:lazy(()=>import('../page/Home'))
    },
     {
        path:'/index',
        title:'工作台',
        element:lazy(()=>import('../page/Index'))
    },
     {
        path:'/login',
        title:'创建设计',
        element:lazy(()=>import('../page/Login'))
    },
     {
        path:'/test',
        title:'偏好设置',
        element:lazy(()=>import('../page/Test'))
    },
     {
        path:'/main',
        title:'我的收藏',
        element:lazy(()=>import('../page/Main'))
    },
     {
        path:'/error',
        element:lazy(()=>import('../page/Error'))
    }
]

export default routes;
